home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Die Speccy' 97
/
Die Speccy' 97.iso
/
amiga_system
/
the_aminet
/
util
/
cli
/
mcomms_1_4.lha
/
Install
/
Install MCommands
< prev
next >
Wrap
Text File
|
1995-08-31
|
6KB
|
249 lines
; Installer script for MCommands
; $VER: Install MCommands 37.5 (31.8.95)
(complete 0)
(set @default-dest "C:")
(set @script-dest "S:Shell-Startup")
(set #comm-dir "/C/")
(set #script-name "/S/RX-Startup")
; ***************************************************************************
; English strings
(if (= @language "english")
(
(set #bad-kick
(cat "You must have AmigaDOS 2.04 or higher to use MCommands!"))
(set #welcome
(cat "\nMCommands installation\n\n\n"
"This script installs MCommands 1.4\n"
"on your Amiga.\n\n\n\n"
"MCommands package is\n"
"Copyright ⌐ 1994-95 Michael Letowski\n"
"All rights reserved.\n\n"))
(set #where-commands
(cat "Where should MCommands be installed?"))
(set #where-help
(cat "\nBy default, all CLI commands are placed in C:"
" logical directory. Hovewer, the commands can be"
" placed in any directory, as long as it is added to"
" search path by using \"Path\" command.\n\n"))
(set #script
(cat "Shall RXControl aliases be added to " @script-dest "?"))
(set #script-help
(cat "\nTo make RXControl fully compatible with"
" default setup, aliases may be added to"
" your Shell-Startup file that emulate"
" commands from SYS:Rexxc directory."))
(set #which-commands
(cat "Which MCommands should be installed?"))
(set #which-commands-help
(cat "\n\n\"BootLog\" records time and reason of reboot;"
"\n\n\"ChangeFont\" replaces topaz.font with user supplied one;"
"\n\n\"ClickStart\" enables/disables AmigaDOS features;"
"\n\n\"Examine\" checks type of file;"
"\n\n\"For\" executes a command for multiple arguments;"
"\n\n\"RXControl\" controls ARexx;"
"\n\n\"Time\" times command execution;"
"\n\n\"Touch\" changes date of file creation.\n\n\n"))
)
)
; ***************************************************************************
; Polish strings
(if (= @language "polski")
(
(set #bad-kick
(cat "Musisz posiadaΩ AmigaDOS w wersji 2.04 lub wy√szej aby u√yΩ pakietu!"))
(set #welcome
(cat "\nInstalacja \"MCommands\"\n\n\n"
"Skrypt ten zainstaluje pakiet\n"
"\"MCommands\" w wersji 1.4\n"
"na twojej Amidze.\n\n\n\n"
"Pakiet \"MCommands\" jest\n"
"Copyright ⌐ 1994-95 Michaε ╬δtowski\n"
"All rights reserved.\n\n"))
(set #where-commands
(cat "Gdzie powinny zostaΩ zainstalowane rozkazy z pakietu?"))
(set #where-help
(cat "\nDomy⌠lnie, miejscem dla rozkaz≤w CLI jest"
" logiczny katalog C:. Mo√na jednak umie⌠ciΩ"
" rozkazy w dowolnym miejscu tak dεugo, jak"
" bδdzie ono w ⌠cie√ce wyszukiwania"
" (ustawianej rozkazem \"Path\").\n\n"))
(set #script
(cat "Czy mam dodaΩ skr≤ty (\"aliasy\") do pliku " @script-dest "?"))
(set #script-help
(cat "\nAby uczyniΩ RXControl bardziej"
" zgodnym z typowym systemem, pewne"
" skr≤ty emulujΓce rozkazy z katalogu"
" SYS:Rexxc mogΓ zostaΩ doεΓczone do"
" pliku Shell-Startup."))
(set #which-commands
(cat "Kt≤re rozkazy z pakietu powinny zostaΩ zaistalowane?"))
(set #which-commands-help
(cat "\n\n\"BootLog\" zapisuje czas i pow≤d restartu komputera"
"\n\n\"ChangeFont\" zamienia \"topaz.font\" na czcionkδ wybranΓ"
" przez u√ytkownika;"
"\n\n\"ClickStart\" wεΓcza/wyεΓcza funkcje AmigaDOS;"
"\n\n\"Examine\" okre⌠la typy plik≤w;"
"\n\n\"For\" wykonuje podany rozkaz dla wielu argument≤w;"
"\n\n\"RXControl\" pozwala na kotrolδ ARexx'a;"
"\n\n\"Time\" mierzy czas wykonania rozkazu;"
"\n\n\"Touch\" uaktualnia datδ modyfikacji pliku.\n\n\n"))
)
)
; ***************************************************************************
; Install MCommands
; Check AmigaDOS version
(set #version (/ (getversion) 65536))
(if (< #version 37)
(
(abort #bad-kick)
)
)
(message #welcome)
(welcome)
(set old_level @user-level)
(user 2)
(set #mcommands-dir
(askdir
(prompt #where-commands)
(help #where-help)
(default @default-dest))
)
; Choose commands
(if (< #version 39)
(
(set commands
(askoptions
(prompt #which-commands)
(help #which-commands-help @askoptions-help)
(choices
"BootLog"
"ChangeFont"
"ClickStart"
"For"
"RXControl"
"Time"
"Touch")
)
)
(set install-rx (IN commands 3))
)
(
(set commands
(askoptions
(prompt #which-commands)
(help #which-commands-help @askoptions-help)
(choices
"BootLog"
"ChangeFont"
"ClickStart"
"Examine"
"For"
"RXControl"
"Time"
"Touch")
)
)
(set install-rx (IN commands 4))
)
)
; Do copy
(user old_level)
(set n 0)
(if (< #version 40)
(while
(set comm
(select n
"BootLog"
"ChangeFont"
"ClickStart37"
"For"
"RXControl"
"Time"
"Touch"
"")
)
(
(if (IN commands n)
(copyfiles
(source (cat #comm-dir comm))
(dest #mcommands-dir)
)
)
(set n (+ n 1))
(complete (* n 12))
)
)
; 3.0 Install
(while
(set comm
(select n
"BootLog"
"ChangeFont"
"ClickStart"
"Examine"
"For"
"RXControl"
"Time"
"Touch"
"")
)
(
(if (IN commands n)
(copyfiles
(source (cat #comm-dir comm))
(dest #mcommands-dir)
)
)
(set n (+ n 1))
(complete (* n 11))
)
)
)
; Append RX-Startup if RXControl was chosen
(if install-rx
(if (askbool
(prompt #script)
(help #script-help)
)
(textfile
(dest @script-dest)
(include @script-dest)
(include #script-name)
)
)
)
(set @default-dest #mcommands-dir)
(complete 100)
(exit)